﻿using Kw.Combinatorics;
using System;

namespace Kw.CombinatoricsExamples
{
    class CombinationExample05
    {
        static void Main ()
        {
            int n = 10;
            int k = 7;
            int rank = 110;

            Combination combo = new Combination (n, k, rank);

            foreach (int element in combo)
                Console.WriteLine ("Element = " + element);
        }

        /* Output:

        Element = 1
        Element = 3
        Element = 5
        Element = 6
        Element = 7
        Element = 8
        Element = 9

        */
    }
}
